package com.link.play.fit.ai.ui.exercise

import android.os.Bundle
import androidx.activity.addCallback
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.link.play.fit.ai.base.BaseActivity
import com.link.play.fit.ai.base.goToAc
import com.link.play.fit.ai.databinding.AcLogExerciseBinding


class LogExerciseAc : BaseActivity<AcLogExerciseBinding>(AcLogExerciseBinding::inflate) {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        onBackPressedDispatcher.addCallback {
            finish()
        }
        binding.flBack.setOnClickListener {
            onBackPressedDispatcher.onBackPressed()
        }

        binding.ll1.setOnClickListener {
            goToAc(RunActivity::class.java)
        }
        binding.ll2.setOnClickListener {
            goToAc(WeightLiftAc::class.java)
        }
        binding.ll3.setOnClickListener {
            goToAc(DescribeAc::class.java)
        }

    }

}